<div class="header">
    <b>在职列表<?php if($params['fid']):?>-<?=$fun_list[$params['fid']]['function_name']?><?php endif;?></b>
</div>
<div class="body">
<?php if(!$params['fid']):?>
<table cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <th></th>
        <th>人数</th>
     <!--     <th>P线</th>-->
        <th></th>
        <th>资历</th>
        <th  colspan="4" style="text-align:left ;"></th>
        <th>学历</th>
        <th colspan="3" style="text-align: left"></th>
    </tr>
    <tr>
        <th>统计</th>
        <th>在职/编制</th>
       <!--  <th>在职/编制</th>-->
        <th>P/M比</th>
        <th>半年以内</th>
        <th>0.5-1年</th>
        <th>1-2年</th>
        <th>2－3年</th>
        <th>3年以上</th>
        <th>硕士及以上</th>
        <th>本科</th>
        <th>大专以下</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php if(!empty($data['datalist'])):?>
    <tr class="fst">
        <td style="font-weight: bold;">安居客集团</td>
        <td><?=$data['datalist'][999]['fact_num']?>/<?=$data['datalist'][999]['plan_num']?></td>
        <td><?=$data['datalist'][999]['p_num']?>/<?=$data['datalist'][999]['m_num']?></td>
        <td><?=$data['datalist'][999]['job_time_1']?></td>
        <td><?=$data['datalist'][999]['job_time_2']?></td>
        <td><?=$data['datalist'][999]['job_time_3']?></td>
        <td><?=$data['datalist'][999]['job_time_4']?></td>
        <td><?=$data['datalist'][999]['job_time_5']?></td>
        <td><?=$data['datalist'][999]['degree_1']?></td>
        <td><?=$data['datalist'][999]['degree_2']?></td>
        <td><?=$data['datalist'][999]['degree_3']?></td>
        <td></td>
    </tr>
    <?php unset($data['datalist'][999]); foreach($data['datalist'] as $k=>$val):?>
    <tr class="fst">
        <td st="<?=$k?>"><?=$fun_list[$k]['function_name']?></td>
        <td><?=$val['fact_num']?>/<?=$val['plan_num']?></td>
        <td><?=$val['p_num']?>/<?=$val['m_num']?></td>
        <td><?=$val['job_time_1']?></td>
        <td><?=$val['job_time_2']?></td>
        <td><?=$val['job_time_3']?></td>
        <td><?=$val['job_time_4']?></td>
        <td><?=$val['job_time_5']?></td>
        <td><?=$val['degree_1']?></td>
        <td><?=$val['degree_2']?></td>
        <td><?=$val['degree_3']?></td>

        <td><a target="_blank" href="<?=Report_Urls::entry_view_url($k)?>">查看详情</a></td>
    </tr>
    </tbody>
    <?php endforeach;?>
    <?php endif;?>
</table>
<?php else:?>


<table cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <th align="left" colspan="2">&nbsp;</th>
        <th>人数</th>
      <!--   <th>P线</th>-->
        <th></th>
        <th>资历</th>
        <th  colspan="4" style="text-align:left ;"></th>
        <th>学历</th>
        <th colspan="3" style="text-align: left"></th>

    </tr>
    <tr>
        <th></th>
        <th align="left;" style="width: 66px;text-align: left;"><label style="margin-left: 10px;"> 统计</label></th>
        <th>在职/编制</th>
      <!--   <th>在职/编制</th>-->
        <th>P/M比</th>
        <th>半年以内</th>
        <th>0.5-1年</th>
        <th>1-2年</th>
        <th>2－3年</th>
        <th>3年以上</th>
        <th>硕士及以上</th>
        <th>本科</th>
        <th>大专以下</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>

    <tr>
        <td style="width: 30px;"></td>
        <td align="left" style="font-weight: bold;"><?=$fun_list[$params['fid']]['function_name']?></td>
        <td><?=$data['datalist'][999]['fact_num']?>/<?=$data['datalist'][999]['plan_num']?></td>
        <td><?=$data['datalist'][999]['p_num']?>/<?=$data['datalist'][999]['m_num']?></td>
        <td><?=$data['datalist'][999]['job_time_1']?></td>
        <td><?=$data['datalist'][999]['job_time_2']?></td>
        <td><?=$data['datalist'][999]['job_time_3']?></td>
        <td><?=$data['datalist'][999]['job_time_4']?></td>
        <td><?=$data['datalist'][999]['job_time_5']?></td>
        <td><?=$data['datalist'][999]['degree_1']?></td>
        <td><?=$data['datalist'][999]['degree_2']?></td>
        <td><?=$data['datalist'][999]['degree_3']?></td>
        <td></td>
    </tr>
    <?php if(!empty($data['datalist'])):?>
    <?php unset($data['datalist'][999]); foreach($data['datalist'] as $k=>$val):?>
    <tr>
        <td style="border: none;"></td>
        <td align="left" style="text-align: left;"><label style="margin-left: 15px;"><?=$bu_list[$k]['bu_name']?></label></td>
        <td><?=$val['fact_num']?>/<?=$val['plan_num']?></td>
        <td><?=$val['p_num']?>/<?=$val['m_num']?></td>
        <td><?=$val['job_time_1']?></td>
        <td><?=$val['job_time_2']?></td>
        <td><?=$val['job_time_3']?></td>
        <td><?=$val['job_time_4']?></td>
        <td><?=$val['job_time_5']?></td>
        <td><?=$val['degree_1']?></td>
        <td><?=$val['degree_2']?></td>
        <td><?=$val['degree_3']?></td>
        <?php if(!empty($val['city_list']) && count($val['city_list'])==1):?>
        <td></td>
        <?php else:?>
        <td><a href="#" class="detail" fid="<?=$params['fid']?>" bu_id="<?=$k?>" onclick="return false">查看详情</a></td>
        <?php endif;?>
    </tr>
    <?php endforeach;?>
    <?php endif;?>
    <!--  tr class="fst">
        <td style="border: none;"></td>
        <td align="left" style=";margin-left: 10px;"><label style="margin-left: 15px;">二手房</label></td>
        <td>120/123</td>
        <td>100/120</td>
        <td>100/120</td>
        <td>11/4</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td><a target="_blank" href="#">查看详情</a></td>
    </tr>

    <tr>
        <td style="border: none;"></td>
        <td align="left"><label style="margin-left: 30px;">上海</label></td>
        <td>120/123</td>
        <td>100/120</td>
        <td>100/120</td>
        <td>11/4</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td>20</td>
        <td><a target="_blank" href="#">查看详情</a></td>
    </tr>-->
    </tbody>
</table>
<?php endif;?>
</div>
<div class="footer">
</div>
    <?php $this->script_block_begin(); ?>
<script type="text/javascript">
var url_dep_list = "<?php echo Report_Urls::ajax_dep_list();?>";
</script>
    <?php $this->script_block_end(); ?>